package com.day18.ex05;

import java.io.*;

public class CopyJavaDemo02 {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new FileReader("myCharSream\\BufferedStreamDemo01.java"));
        BufferedWriter bw=new BufferedWriter(new FileWriter("myCharSream\\BufferedStreamDemo01.java"));
        String line ;
        while ((line=br.readLine())!=null){
            bw.write(line);
            bw.newLine();
            bw.flush();
        }
        bw.close();
        br.close();
    }
}
